<?php


class JourSemaine {
    
        private $pk=0;
        
        
	public static function loadAll(){
            $liste=array();
            for($i=0;$i<7;$i++){
                $liste[]=self::load($i);
            }
	    return $liste;
	}
        
        
	public static function load($id){
	    return new JourSemaine($id);
	}
        
        public static function getPK(){
	    return 'pk';
	}
        
        
        
        public function __construct($pk){
            $this->pk=$pk;
        }
        
        public function __get($name){
            if($name=='pk') return $this->pk;
        }
        
        public function __toString(){
            return Date::formaterJourFR($this->pk);
        }
	

}


?>